package cn.ljlao.mall.ware.ware.dao;

import cn.ljlao.mall.ware.ware.entity.WareSkuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 商品库存
 * 
 * @author LiuZhen
 * @email ljlao@vip.qq.com
 * @date 2020-10-14 16:57:59
 */
@Mapper
public interface WareSkuDao extends BaseMapper<WareSkuEntity> {

    void addStok(@Param("skuId") Long skuId,@Param("wareId") Long wareId, @Param("skuNum")Integer skuNum);

    Long getSkuCount(Long skuId);

}
